import sympy

x = sympy.Symbol('x')
expression = x**x
limit_result = sympy.limit(expression, x, 0, dir='+')
print(limit_result)  # 输出：1